﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;

namespace WebApiV2.Domain
{
    public interface IResponsitory<T>
    {
        IQueryable<T> Table { get; }

        T GetById(int id);
        
        void Insert(T Entity);
        void InsertBulk(IEnumerable<T> Entity);
        
        void Update(T entity);

        void Delete(int id);
        void Delete(T entity);
        void Delete(IEnumerable<T> entities);

    }
}
